package com.yunxi.rabbitmq.consumer;

import com.yunxi.sto.pojo.VehiclePdiBillCheckVO;
import com.yunxi.sto.service.VehiclePdiBillDubboService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Component;

@Component
public class PdiReceive {

//    private static final Logger logger = LoggerFactory.getLogger(PdiReceive.class);
//
//    @Autowired
//    @Qualifier(value = "vehiclePdiBillDubboServiceImpl")
//    VehiclePdiBillDubboService vehiclePdiBillDubboService;
//
//    @RabbitListener(queues = "pdiQueue")
//    public void pdiQueue(VehiclePdiBillCheckVO vehiclePdiBillCheckVO) {
//        try {
//            logger.info("=====================接收PDI检查MQ消息成功====================");
//            vehiclePdiBillDubboService.check(vehiclePdiBillCheckVO);
//            logger.info("=====================接收PDI检查MQ消息完成====================");
//        } catch (Exception e) {
//            e.printStackTrace();
//            logger.error(e.getMessage());
//        }
//    }


}

